<h1>Carreras</h1>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table  border="0" align="left">
      <tr>
        <td width="162" align="left">ID</td>
        <td width="284" align="left">
		<span id="sprytextfield1">
          <input name="txtIDcarrera" type="text" id="txtIDcarrera" readonly="readonly" />
          <span class="textfieldRequiredMsg">Se necesita un valor.</span></span>
		</td>
      </tr>
      <tr>
        <td align="left">Carrera</td>
        <td align="left"><span id="sprytextfield2">
          <input type="text" name="txtCarrera" id="txtCarrera" />
          <span class="textfieldRequiredMsg">Se necesita un valor.</span></span>
		 </td>
      </tr>
	  <tr>
		<td align="left">Estado</td>
		<td align="left">
			<input type="radio" name="rbEstado" id="rbActivo" value="1"><img width="16px" height="16px" src=" <?php echo base_url(); ?>public/Imagenes/yes.png"></span>
			<input type="radio" name="rbEstado" id="rbBorrado" value="1"><img width="16px" height="16px" src=" <?php echo base_url(); ?>public/Imagenes/delete.png"></span>
		</td>
	  </tr>
      <tr>
        <td align="left">&nbsp;</td>
        <td align="left">
			<input type="button" name="btnAgregar" id="btnAgregarCarrera" value="Agregar" />
			<input type="button" name="btnActualizar" id="btnActualizarCarrera" value="Actualizar" />
		</td>
      </tr>
    </table>
</form>
<table border="1">
  <thead>
  <tr>
    <th>Carrera</th>
    <th>ID</th>
    <th>Estado</th>
	<th>Modificar</th>
  </tr>
  </thead>
  <tbody>
    <?php
		foreach($tablaCarreras as $carrera)
		{
			echo "<tr>";
			echo "<td>" . $carrera['descripcion'] . "</td>";
			echo "<td>" . $carrera['idCarrera'] . "</td>";
			if($carrera['estado'] == '1')
				echo "<td><span><img width=16px height=16px src='" . base_url() . "public/Imagenes/yes.png'></span></td>";
			else echo "<td><span><img width=16px height=16px src='" . base_url() . "public/Imagenes/cancel.png'></span></td>";
			echo "<td><span><img width=16px height=16px src='" . base_url() . "public/Imagenes/edit.png'></td>";
			echo "</tr>";
			
		}
	?>
  </tbody>
</table>